package router

import (
	"gitlab.yoyiit.com/youyi/go-common/constant"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
	somsHandler          handler.ProductCustomValueHandler
}

func (r *BaseRouter) SetRouter(app *gin.Engine) {
	group := app.Group(constant.??????)
	group.GET("/productCustomValue", r.somsHandler.ListProductCustomValue())
	group.GET("/productCustomValue/:id", r.somsHandler.GetProductCustomValue())
	group.PUT("/productCustomValue", r.somsHandler.AddProductCustomValue())
	group.POST("/productCustomValue/:id", r.somsHandler.EditProductCustomValue())
	group.DELETE("/productCustomValue/:id", r.somsHandler.DeleteProductCustomValue())
	group.POST("/batchDeleteProductCustomValue", r.somsHandler.BatchDeleteProductCustomValue())
}